#include "stdio.h"
#include "unistd.h"
#include "time.h"
#include "stdlib.h"
typedef struct
{
	char a[100];
	int abc;
}test;

test *item[] =
{
	{"hello world",1},
	{"a        ",2},
	{"god      ",3},
	{"end"     ,4}
};

void main(int argc,char **argv,char **env)
{
/*	time_t cur_time = time(NULL);
	char buf[100];
	printf("current time is : %s",ctime(&cur_time));
	char *columns = getenv("COLUMNS");
	if(!columns)
		perror("error");
	printf("%d\n",columns);
	printf("%s\n",columns);
	int i=0;
//	while(env[i])
//		printf("%s\n",env[i++]);

	snprintf(buf,100,"hello world");
	printf(buf);
	printf(buf);

	*/
/*	
	char *buf[]=
	{
		"hello","world","god","bless","me","hello_every_body","is_god_here","i_hope_so",
		"i_am_here","may_i","i_think_so","buf","try_to_do","try_is","best","better",
		"hear_we_go","my_presure","hello_world","eat","sleep","go_to_bad","find_job",
		"yes","no","jam","lensan","door_bell","had_better","microsoft","programing",NULL
	};
	char *pcolumns = getenv("COLUMNS");
	int columns=80;
	if(pcolumns)
		columns = atoi(pcolumns);
	printf("columns is %d\n",columns);
	int i=0,j=0;
	int files[100];
	while(buf[i])
	{
		files[i]=strlen(buf[i++]);
	}
	int lines[10];
	int lin_index;
	for( j=0;j < i;j++)
	{
		
	}
*/
	printf("%s\n",(char *)item[0]);
	printf("%s\n",(char *)item[1]);
	printf("%s\n",(char *)item[2]);
}
